<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
    <script src="js/http.js"></script>
</head>
<body>
    <script>
        let url = "top/playlist?cat=华语";
        async function getData(){
            let cat = await http(url);
            let id = cat.playlists[0].id;
            let detail = await http(`playlist/detail?id=${id}`);
            let songId = detail.playlist.tracks[0].id
            let songUrl =  await http(`song/url?id=${songId}`);
            console.log(songUrl)
        }
        getData();
    </script>
</body>
</html>